#include "StdAfx.h"


CBaseState::CBaseState(CMainFrame * pMainFrame)
{
	m_pMainFrame=pMainFrame;
}

CBaseState::~CBaseState(void)
{
	Destory();
}

CD3DDevice * CBaseState::GetD3DDevice()
{
	return m_pMainFrame->GetD3DDevice();
}
CD3DSceneRender * CBaseState::GetSceneRender()
{
	return m_pMainFrame->GetSceneRender();
}
CD3DUIRender * CBaseState::GetUIRender()
{
	return m_pMainFrame->GetUIRender();
}
CD3DGUI * CBaseState::GetGUI()
{
	return m_pMainFrame->GetGUI();
}
CMainFrame * CBaseState::GetMainFrame()
{
	return m_pMainFrame;
}

bool CBaseState::Init()
{
	return true;
}
void CBaseState::Destory()
{

}
int CBaseState::Update(float Time)
{
	return 0;
}

BOOL CBaseState::OnDOSMessage(CDOSSimpleMessage * pMessage)
{
	return FALSE;
}

bool CBaseState::OnWMSG(MSG* pMsg)
{
	return false;
}